﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DIProject.ReceptionGoods
{
    public partial class PaymentDateForm : Form
    {
        private MoronRows _moronRows;
        public PaymentDateForm(MoronRows moronRows)
        {
            this._moronRows = moronRows;
            InitializeComponent();
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.checkBox1.Checked)
                this._moronRows.PaymentDate = dtp.Value;
            this._moronRows.Note = this.textBox1.Text;
            this.Close();
        }
    }
}